package org.mspring.mlog.entity;

import org.mspring.nbee.db.annotation.Col;
import org.mspring.nbee.db.annotation.Mappable;
import org.mspring.nbee.db.entity.BaseEntity;

import java.util.Date;

/**
 * @author Gao Youbo
 * @since 2015-01-20 13:03:25
 */
@Mappable
public class Article extends BaseEntity {

    @Col(nullable = false, length = 19)
    private long category;
    @Col(nullable = false, length = 1024)
    private String title;
    @Col(nullable = false, length = 2147483647)
    private String content;
    @Col(length = 65535)
    private String imageList;
    @Col(nullable = false, length = 10)
    private int viewCount;
    @Col(nullable = false, length = 10)
    private int status;
    @Col(nullable = false, length = 19)
    private Date createTime;
    @Col(nullable = false, length = 19)
    private long createUser;
    @Col(nullable = false, length = 32)
    private String createUserName;
    @Col(nullable = false, length = 19)
    private Date updateTime;
    @Col(nullable = false, length = 19)
    private long updateUser;
    @Col(nullable = false, length = 32)
    private String updateUserName;

    public long getCategory() {
        return this.category;
    }

    public void setCategory(long category) {
        this.category = category;
    }

    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return this.content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getImageList() {
        return this.imageList;
    }

    public void setImageList(String imageList) {
        this.imageList = imageList;
    }

    public int getViewCount() {
        return this.viewCount;
    }

    public void setViewCount(int viewCount) {
        this.viewCount = viewCount;
    }

    public int getStatus() {
        return this.status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public long getCreateUser() {
        return this.createUser;
    }

    public void setCreateUser(long createUser) {
        this.createUser = createUser;
    }

    public String getCreateUserName() {
        return this.createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    public Date getUpdateTime() {
        return this.updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public long getUpdateUser() {
        return this.updateUser;
    }

    public void setUpdateUser(long updateUser) {
        this.updateUser = updateUser;
    }

    public String getUpdateUserName() {
        return this.updateUserName;
    }

    public void setUpdateUserName(String updateUserName) {
        this.updateUserName = updateUserName;
    }

}
